package cn.net.ait.hr.action;

import org.guiceside.web.action.BaseAction;
import org.guiceside.web.annotation.Action;
import com.google.inject.Inject;
import cn.net.ait.hr.service.HrDutyService;
import cn.net.ait.hr.entity.HrDuty;

/**
 * Created by IntelliJ IDEA.
 * User: zhenjia
 * Date: 2009-3-30
 * Time: 11:43:10
 * To change this template use File | Settings | File Templates.
 */
@Action(name = "duty",namespace = "/hr")
public class HrDutyAction extends BaseAction{

    @Inject
    private HrDutyService hrDutyService;
    
    public String execute() throws Exception {
        System.out.print("『[185 董事长] ===>");
        Long id=Long.valueOf(185);
        HrDuty hrDuty=hrDutyService.getDuty(id );
        //System.out.println(hrDuty.getId()+" :"+  hrDuty.getDutyNameZh()+"』");
//        if(!id.equals(hrDuty.getId())){
//            System.out.println("*********************************");
//        }
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }
    public String ceo() throws Exception {
        System.out.print("〖[188 CEO] ^^^^^>");
        Long id=Long.valueOf(188);
        HrDuty hrDuty=hrDutyService.getDuty(id);
        System.out.println(hrDuty.getId()+" :"+  hrDuty.getDutyNameZh()+"〗");
        if(!id.equals(hrDuty.getId())){
            System.out.println("=================================");
        }
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

    public String cfo() throws Exception {
        System.out.print("[187 CFO] ===>");
        HrDuty hrDuty=hrDutyService.getDuty(Long.valueOf(187) );
        System.out.println(hrDuty.getId()+" :"+  hrDuty.getDutyNameZh());
        return null;  //To change body of implemented methods use File | Settings | File Templates.
    }

}
